package com.pfzy.lib.sdk.utils;

import android.content.Context;

public class StatusBarUtils {
    public static int getStatusBarHeight(Context context) {
        int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
        if (resourceId <= 0) {
            return 0;
        }
        int result = context.getResources().getDimensionPixelSize(resourceId);
        return result;
    }
}
